import http from '@/utils/request';

export default{
	getWaiter:(params)=>{//服务员列表
		return http.get('/wx/v1/waiter/page',{params})
	},

	getWaiterList:(params)=>{
		return http.get('/wx/v1/waiter/listIdName',{params})
	},
	getBusinessDepart:()=>{//获取部门列表
		return http.get('/wx/v1/businessDepart/idNameTree', {})
	},
	addWaiter:(data)=>{//添加服务员
		return http.post('/wx/v1/waiter',data)
	},
	editWaiter:(data)=>{//修改服务员
		return http.put('/wx/v1/waiter',data)
	},
	waiterInfo:(params)=>{//查询id
		return http.get('/wx/v1/waiter',{params})
	},
	getScheduleInfo:(params)=>{//获取服务员排班表
		return http.get('/wx/v1/scheduleInfo/listByWaiter',{params})
	},
	saveShiftInfo:(data)=>{//设置服务员排班班次
		return http.post('/wx/v1/scheduleInfo/saveShiftInfo',data)
	},
	addScheduleInfo:(data)=>{//设置服务员排班
		return http.post('/wx/v1/scheduleInfo',data)
	},
	delSchedule:(data)=>{//删除服务员排班班次
		return http.put('/wx/v1/scheduleInfo/deleteShiftInfo',data)
	},
	getPartInfo:(params)=>{//获取服务员可设置信息数据
		return http.get('/wx/v1/waiter/getPartInfo',{params})
	},
	setPartInfo:(data)=>{//设置服务员可设置信息数据
		return http.put('/wx/v1/waiter/setPartInfo',data)
	},
}
